﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class 系统管理_add_pjgz : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        int flag =  Convert.ToInt32( this.flag.SelectedValue);
        int year = Convert.ToInt32(this.year.Text);
        decimal salary = Convert.ToDecimal(this.salary.Text);

        平均工资表 ap = new 平均工资表();
        ap.flag = flag;
        ap.year = year;
        ap.salary = salary;

        平均工资表dao ap_dao = new 平均工资表dao();
        ap_dao.Add(ap);

        Response.Redirect("list_pjgz.aspx");
    }
}
